package cn.tedu._03vehicle.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/user/")
public class TestController {
    /**
     * 1.登录功能
     *   请求地址: login666
     *   请求方法: POST
     *   请求数据: username password
     */
    @PostMapping("login666")
    public String login666(String username, String password){
        if (username == null || password == null){
            return "用户名或密码不能为空";
        }

        return "登录成功";
    }
}